<?php

use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Route;

$collection = new RouteCollection();

$collection->add('frontendfront_homepage', new Route('/', array(
    '_controller' => 'frontendfrontBundle:Default:index',
)));

//======================= START Config Admin ===============================================================================
$collection->add('frontendfront_admin', new Route('/admin/', array(
    '_controller' => 'frontendfrontBundle:Admin/Aduser:index',
)));

$collection->add('frontendfront_admin_User_Login', new Route('/admin/aduser/login', array(
    '_controller' => 'frontendfrontBundle:Admin/Aduser:login',
)));
$collection->add('frontendfront_admin_User_checklogin', new Route('/admin/aduser/checklogin', array(
    '_controller' => 'frontendfrontBundle:Admin/Aduser:checklogin',
)));
$collection->add('frontendfront_admin_User_logout', new Route('/admin/aduser/logout', array(
    '_controller' => 'frontendfrontBundle:Admin/Aduser:login',
)));

$collection->add('frontendfront_admin_User_changepass', new Route('/admin/aduser/changepass', array(
    '_controller' => 'frontendfrontBundle:Admin/Aduser:changepass',
)));
//============================= PRODUCT ==================================================================================
$collection->add('frontendfront_admin_Product', new Route('/admin/adproduct', array(
    '_controller' => 'frontendfrontBundle:Admin/Adproduct:index',
)));

$collection->add('frontendfront_admin_Product_add', new Route('/admin/adproduct/add', array(
    '_controller' => 'frontendfrontBundle:Admin/Adproduct:add',
)));

$collection->add('frontendfront_admin_Product_edit', new Route('/admin/adproduct/edit', array(
    '_controller' => 'frontendfrontBundle:Admin/Adproduct:edit',
)));

$collection->add('frontendfront_admin_Product_detail', new Route('/admin/adproduct/detail', array(
    '_controller' => 'frontendfrontBundle:Admin/Adproduct:detail',
)));
//======================= END Config Admin ===============================================================================


return $collection;
